package com.lms.logisticsmanagementsystem.mapper;

import com.lms.logisticsmanagementsystem.model.LoginManage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

@Component
@Mapper
public interface LoginMapper {


    LoginManage checkLogin(@Param("username") String username);

    Integer checkRegisterCount(@Param("username") String username);

    void writeUserInfo(@Param("username") String username, @Param("password") String password, @Param("userIdentity") String userIdentity);

    String checkOldPassword(@Param("username") String username);

    void updatePassword(@Param("username") String username, @Param("newPasswd") String newPasswd);
}
